package com.zr.model;
// Generated 2016-6-19 19:35:13 by Hibernate Tools 3.2.2.GA

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * TDistributionpoint generated by hbm2java
 */
@Entity
@Table(name = "t_distributionpoint", catalog = "ld_sys")
public class TDistributionpoint implements java.io.Serializable {

	private Integer dpid;
	private String dpname;
	private Integer sp;
	private String as;
	private String ds;
	private Integer uid;
	private Set<TStatus> TStatuses = new HashSet<TStatus>();

	public TDistributionpoint() {
	}

	public TDistributionpoint(String dpname, Integer sp, String as, String ds, Integer uid, Set<TStatus> TStatuses) {
		this.dpname = dpname;
		this.sp = sp;
		this.as = as;
		this.ds = ds;
		this.uid = uid;
		this.TStatuses = TStatuses;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "dpid", unique = true, nullable = false)
	public Integer getDpid() {
		return this.dpid;
	}

	public void setDpid(Integer dpid) {
		this.dpid = dpid;
	}

	@Column(name = "dpname")
	public String getDpname() {
		return this.dpname;
	}

	public void setDpname(String dpname) {
		this.dpname = dpname;
	}

	@Column(name = "sp")
	public Integer getSp() {
		return this.sp;
	}

	public void setSp(Integer sp) {
		this.sp = sp;
	}

	@Column(name = "as")
	public String getAs() {
		return this.as;
	}

	public void setAs(String as) {
		this.as = as;
	}

	@Column(name = "ds")
	public String getDs() {
		return this.ds;
	}

	public void setDs(String ds) {
		this.ds = ds;
	}

	@Column(name = "uid")
	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "TDistributionpoint")
	public Set<TStatus> getTStatuses() {
		return this.TStatuses;
	}

	public void setTStatuses(Set<TStatus> TStatuses) {
		this.TStatuses = TStatuses;
	}

}
